package com.sumainfor.pc.market.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.service.MaintenanceHouConService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * <p>
 * 查询房源信息
 * <p>
 *
 * @author: zhoucong
 * @create: 2019-06-03 19:50
 **/
@Controller
@RequestMapping("/key/maintenanceHouCon")
public class MaintenanceHouConController {

    @Autowired
    MaintenanceHouConService maintenanceHouConService;


    /**
    * <p>
    * 同过房源配置主表编号查询
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    @ResponseBody
    @PostMapping("/getHouConList")
    public JsonResult getHouConList(@RequestBody Map<String,Object> params){
        return maintenanceHouConService.getHouConList(params);
    }

    /**
    * <p>
    * 同过房源编号查询房源信息
    * </p>
    *
    * @author: zhoucong
    * @since:
    */
    @ResponseBody
    @PostMapping("/getHouIdLists")
    public  JsonResult getHouIdList(@RequestBody Map<String,Object> params){
        return maintenanceHouConService.getHouIdLists(params);
    }



    @ResponseBody
    @PostMapping("/updatePayment")
    public JsonResult updatePayment(@RequestBody Map<String,Object> params){
        return maintenanceHouConService.updatePayment(params);


    }



}
